#pragma once

#include <QDialog>
#include "ui_Player.h"
#include <QMessageBox>
#include <QCloseEvent>

namespace qtangram {
    class Player : public QDialog, private Ui_Player {
	Q_OBJECT
    public:
	Player(QWidget* parent = 0, Qt::WindowFlags f = 0);
    public slots:
	void onOkClicked();
	QString getName() const { return name; }
    protected:
	void closeEvent(QCloseEvent*);
    private:
	QString name;
    signals:
	void playerNameEntered(QString);
    };
}
